package org.exez.modules.visitor.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 访客推送记录
 * @Author: exez-boot
 * @Date: 2020-06-28
 * @Version: V1.0
 */
@Data
@TableName("visitor_push_record")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "visitor_push_record对象", description = "访客推送记录")
public class PushRecord {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private java.lang.Integer id;
    /**
     * 访客预约id
     */
    @Excel(name = "访客预约id", width = 15)
    @ApiModelProperty(value = "访客预约id")
    private java.lang.Integer reservationApplicationId;
    /**
     * 事业单位id
     */
    @Excel(name = "事业单位id", width = 15)
    @ApiModelProperty(value = "事业单位id")
    private java.lang.Integer institutionId;

    @ApiModelProperty(value = "单位id")
    private  String institutionCode;
    /**
     * 设备id
     */
    @Excel(name = "设备id", width = 15)
    @ApiModelProperty(value = "设备id")
    private java.lang.Integer deviceId;
    /**
     * 设备名称
     */
    @Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private java.lang.String deviceName;
    /**
     * 设备编码
     */
    @Excel(name = "设备编码", width = 15)
    @ApiModelProperty(value = "设备编码")
    private java.lang.String deviceCode;
    /**
     * 设备ip
     */
    @Excel(name = "设备ip", width = 15)
    @ApiModelProperty(value = "设备ip")
    private java.lang.String deviceIp;

    /**设备端口*/
    @Excel(name = "设备端口", width = 15)
    @ApiModelProperty(value = "设备端口")
    private java.lang.String devicePort;

    /**
     * 内容
     */
    @Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
    private java.lang.String content;
    /**
     * 推送状态： 0未推送 1已推送 2推送失败
     */
    @ApiModelProperty(value = "推送状态： 0未推送 1已推送 2推送失败")
    private java.lang.Integer pushStatus;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy/MM/dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy/MM/dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 20, format = "yyyy/MM/dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy/MM/dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;

    /**
     * 访问日期
     */
    @Excel(name = "访问日期", width = 20, format = "yyyy/MM/dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy/MM/dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    @ApiModelProperty(value = "访问日期")
    private Date visitDate;

    /**
     * 推送id
     */
    @ApiModelProperty(value = "推送id")
    private Long pushId;

    /**是否允许车辆进入*/
    @Excel(name = "状态 0：允许，1：不允许", width = 15)
    @ApiModelProperty(value = "否允许车辆进入 0：允许，1：不允许")
    private java.lang.Integer isCarStatus;
}
